//
//  NSObject+Extensions.swift
//  新浪微博
//
//  Created by huami on 2019/10/15.
//  Copyright © 2019 huami. All rights reserved.
//

import Foundation

public extension NSObject{
     var className:String{
             get{
               let name =  type(of: self).description()
                 if(name.contains(".")){
                     return name.components(separatedBy: ".")[1];
                 }else{
                     return name;
                 }

             }
         }
}
